home *** CD-ROM | disk | FTP | other *** search
- global sQTSPRITE
-
- on exitFrame
- if the movieRate of sprite sQTSPRITE then
- set movieTimePerZone to getaProp(getaProp(gObjects, #MapCarGasGauge), #movieTimePerZone)
- set curFuelLevel to getaProp(getaProp(gObjects, #CarGasGauge), #fuelLevel)
- set fuelBurned to getaProp(getaProp(gObjects, #MapCarGasGauge), #fuelLevel) - curFuelLevel
- if (the movieTime of sprite sQTSPRITE / movieTimePerZone) > fuelBurned then
- decrementGasGauge()
- end if
- go(the frame)
- else
- changeGasGauge(1, #true)
- setaProp(getaProp(gObjects, #CarGasGauge), #fuelLevel, 0)
- stopsound("E01drive.aif")
- go("KeyFrame")
- set objsToDel to [#transCarDashView, #carDashPict, #carMap]
- DelObjects(objsToDel)
- set the castNum of sprite sQTSPRITE to the number of cast "QTPlaceholder"
- setSoundState(#play)
- end if
- end
-